import Home from './components/Home'
import Login from './components/Login'
import {Switch, Route, Redirect, NavLink} from 'react-router-dom'
import { Fragment } from 'react';
function App() {
  return (
    <Fragment>
      <Switch>  
        <Route path='/home' component={Home}></Route>
        <Route path='/login' component={Login}></Route>
        {/* 放在最后面 */}
        <Redirect from='/' to='/home'></Redirect>
      </Switch>
    </Fragment>
  );
}

export default App;
